package com.hanamaki.study.demo;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class ChromeDriverTest {


    public static void main(String[] args) {

        /* 1. 注册驱动的位置  */
        System.setProperty("webdriver.chrome.driver", "C:\\Program Files\\Google\\Chrome\\Application\\chromedriver.exe");

        /* 2, 注册驱动 */
        WebDriver driver = new ChromeDriver();

        /* 打开网址测试  */
        driver.get("https://www.baidu.com");

    }
}
